package com.hoyue.dao;

import com.hoyue.bean.BackPicture;

import java.sql.SQLException;
import java.util.List;

/**
 * @author Hoyue_network1
 * @version 1.0
 * Creat by 2018/8/22 23:43
 */
public interface BackPicDao {
	/**
	 * 获取所有轮播图
	 * @return	轮播图Bean集合
	 */
	List<BackPicture> getBackPicture() throws SQLException;

	/**
	 * 更新轮播图
	 */
 	void updatePicture(BackPicture backPicture) throws SQLException;

	/**
	 * 根据id返回address
	 * @param id
	 * @return 轮播图路径
	 * @throws SQLException
	 */
 	String getAddressById(int id) throws SQLException;
}
